// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  devtools: { enabled: true },
  modules: ['@element-plus/nuxt', '@pinia/nuxt'],
  css: ['~/assets/main.css', 'element-plus/dist/index.css'],
  runtimeConfig: {
    public: {
      NODE_MODE: process.env.NODE_MODE,
      NUXT_APP_API_URL: process.env.NUXT_APP_API_URL,
      NUXT_APP_COOKIE_URL: process.env.NUXT_APP_COOKIE_URL,
      NUXT_APP_CONSOLE_URL: process.env.NUXT_APP_CONSOLE_URL,
      NUXT_APP_WEB_URL: process.env.NUXT_APP_WEB_URL,
      NUXT_APP_WS_URL: process.env.NUXT_APP_WS_URL,
    }
  },
  plugins: ['~/plugins/global-components.ts']
})
